<template>
  <div class="parent2">
    <p>父组件</p>
    <div class="left">
      <brother1 />
    </div>
    <div class="right">
      <brother2 />
    </div>
  </div>
</template>

<script>
import brother1 from './brother1'
import brother2 from './brother2'
export default {
  components: {
    brother1,
    brother2
  }
}
</script>

<style lang="less">
.parent2 {
  width: 800px;
  height: 800px;
  .left {
    width: 300px;
    height: 300px;
    border: 1px solid red;
    float: left;
  }
  .right {
    width: 300px;
    height: 300px;
    border: 1px solid green;
    float: right;
  }
}
</style>
